package org.com.dao;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public abstract class SqlConnTemplate {

	private SqlMapClient sqlmap;
	
	public SqlConnTemplate(){
		
		try {
			sqlmap = SqlMapClientBuilder.buildSqlMapClient(Resources.getResourceAsReader("sqlMapConfig.xml"));
			
		}catch(Exception e){
			e.printStackTrace();
		}
	
	}
	public SqlMapClient getSqlMap(){
		return sqlmap;
	}
	
}
